mod config;
pub use config::*;

pub fn load_yaml() -> ApplicationConfig {
    let yaml_file = include_str!("../config.yaml");
    println!("yaml_file: {}", yaml_file);
    let config: ApplicationConfig = serde_yaml::from_str(yaml_file).unwrap();
    config
}

#[cfg(test)]
mod tests {
    use super::*;
    #[test]
    fn it_works() {
        let config = load_yaml();
        println!("{:?}", config);
    }
}
